package com.xunce.xcworkservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
    * 账户与部门的多对多中间表
    */
@Schema(description="账户与部门的多对多中间表")
@Data
@TableName(value = "account_department")
public class AccountDepartment {
    /**
     * 主键ID，唯一标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description="主键ID，唯一标识")
    private Integer id;

    /**
     * 对应department表中的主键
     */
    @TableField(value = "department_id")
    @Schema(description="对应department表中的主键")
    private Integer departmentId;

    /**
     * 对应account表中的主键
     */
    @TableField(value = "account_id")
    @Schema(description="对应account表中的主键")
    private Integer accountId;
}